package com.dubbo.provider.service;

import com.dubbo.provider.entity.OrderInfo;

public class OrderInfoServiceImpl implements OrderInfoService {
   private  static String  port;

    @Override
    public OrderInfo getOrderInfoById(String orderId) {
        OrderInfo orderInfo = new OrderInfo();
        orderInfo.setOrderId(orderId);
        orderInfo.setPayment(8000);
        orderInfo.setPort(port);
        return orderInfo;
    }
    @Override
    public void setPort(int port) {
       this.port=port+"";
        System.out.println(port);
    }
}
